package org.mig.java.binding.converter;

import org.jdesktop.beansbinding.Converter;
import org.mig.java.entities.Nif;

/**
 *
 * @author hildegard
 */
public class StringNifConverter extends Converter<Nif, String> {

    @Override
    public String convertForward(Nif nif) {
        return nif.toString();
    }

    @Override
    public Nif convertReverse(String nif) {
        return Nif.parseNif(nif);
    }

}
